package com.example.demo01.api;

import com.example.demo01.interceptor.DemoInterceptor;
import com.github.lianjiatech.retrofit.spring.boot.annotation.Intercept;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

import java.util.Map;

/**
 * @ClassName DemoApi
 * @Description
 * @Author zhangsw
 * @Date 2021/10/30 20:02
 * @Version 1.0
 */
@RetrofitClient(baseUrl = "http://127.0.0.2:8082")
@Intercept(handler = DemoInterceptor.class, include = {"/demo/**"})
public interface DemoApi {

    @POST("demo/hello2")
    public Map<String, Object> demo1(@Body Map<String, Object> param);

    @POST("test/hello")
    public Map<String, Object> test1(@Body Map<String, Object> param);
//
//    @POST("predict/tensorflow/{code}/{version}/{id}")
//    Object tensorflowDebug(String code, Integer version, String id);
//
//    @POST("predict/spark/{code}/{version}")
//    Object sparkDebug(String code, Integer version);
}
